---
layout: m1x_soap
title: List of Additional Product Attributes
---


 <h3><a name="product.listOfAdditionalAttributes-Module%3AProductAPI"></a>Module: Product API</h3>

<h4><a name="product.listOfAdditionalAttributes-Resource%3Aproduct"></a>Resource: product</h4>


<h5><a name="product.listOfAdditionalAttributes-Method%3A"></a>Method:</h5>

<ul>
	<li>product.listOfAdditionalAttributes (SOAP V1)</li>
	<li>catalogProductListOfAdditionalAttributes (SOAP V2)</li>
</ul>


<p>Get the list of additional attributes. Additional attributes are attributes that are not in the default set of attributes.</p>

<p><b><em>Arguments:</em></b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId </td>
<td> Session ID </td>
</tr>
<tr>
<td> string </td>
<td> productType </td>
<td> Product type (e.g., simple) </td>
</tr>
<tr>
<td> string </td>
<td> attributeSetId </td>
<td> Attribute set ID </td>
</tr>
</tbody></table>


<p><b><em>Returns:</em></b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> int </td>
<td> attribute_id </td>
<td> Attribute ID </td>
</tr>
<tr>
<td> string </td>
<td> code </td>
<td> Attribute code </td>
</tr>
<tr>
<td> string <br class="atl-forced-newline" /> </td>
<td> type </td>
<td> Attribute type (e.g., text, select, date, 等.) </td>
</tr>
<tr>
<td> string <br class="atl-forced-newline" /> </td>
<td> required </td>
<td> Defines whether the attribute is required </td>
</tr>
<tr>
<td> string <br class="atl-forced-newline" /> </td>
<td> scope </td>
<td> Attribute scope (global, website, or store) </td>
</tr>
</tbody></table>


<p><b><em>Faults:</em></b></p>

<table><tbody>
<tr>
<th> Fault Code </th>
<th> Fault Message </th>
</tr>
<tr>
<td> 104 </td>
<td> Product type is not in allowed types. </td>
</tr>
<tr>
<td> 105 </td>
<td> Product attribute set is not existed </td>
</tr>
<tr>
<td> 106 </td>
<td> Product attribute set is not belong catalog product entity type </td>
</tr>
</tbody></table>


<h4><a name="product.listOfAdditionalAttributes-Examples"></a>Examples</h4>

<h5><a name="product.listOfAdditionalAttributes-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');

$listAttributes = $proxy-&gt;call(
    $sessionId,
    'product.listOfAdditionalAttributes',
    array(
        'simple',
        13
    )
);</pre>
		</div>
</div></div>

<h5><a name="product.listOfAdditionalAttributes-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;catalogProductListOfAdditionalAttributes($sessionId, 'simple', '13');
var_dump($result);</pre>
		</div>
</div></div>

<h5><a name="product.listOfAdditionalAttributes-ResponseExampleSOAPV1"></a>Response Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">array
  0 =&gt;
    array
      'attribute_id' =&gt; string '89' (length=2)
      'code' =&gt; string 'old_id' (length=6)
      'type' =&gt; string 'text' (length=4)
      'required' =&gt; string '0' (length=1)
      'scope' =&gt; string 'global' (length=6)
  1 =&gt;
    array
      'attribute_id' =&gt; string '93' (length=2)
      'code' =&gt; string 'news_from_date' (length=14)
      'type' =&gt; string 'date' (length=4)
      'required' =&gt; string '0' (length=1)
      'scope' =&gt; string 'website' (length=7)
  2 =&gt;
    array
      ...</pre>
		</div>
</div></div>

<?php include(__ROOT__ . 'footer.php'); ?>
